<% var body={%>

<div class="container">
	<div class="row">
		<div class="span12">
			<ul class="breadcrumb">
				<li><a href="${contentPath}">首页</a> <span class="divider">/</span></li>
				<li><a href="${contentPath}/problemlist/1/${pageSize}">练习</a> <span
					class="divider">/</span></li>
				<li class="active">题目列表</li>
			</ul>
		</div>
	</div>
	<div class="row">
		<div class="span12">
			<div class="pagination">
				<ul pg pg-range="[1,${total},${currentPage},${pageSize}]" pg-top="置顶" pg-pre="上一页" pg-next="下一页">
				<li><a href="${contentPath}/problemlist/#{pg-index}/#{pg-pagesize}">#{pg-index}</a>
				</ul>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="span12">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<td><strong class="text-info">通过</strong></td>
						<td><strong class="text-info">题号</strong></td>
						<td><strong class="text-info">标题</strong></td>
						<td><strong class="text-info">AC/All</strong></td>
						<td><strong class="text-info">通过率</strong></td>
					</tr>
				</thead>
				<% var color=["","success","warning"]; var tag=[""," <b class='text-success'>&radic;</b>", " <b class='text-info'>&minus;</b>"]; for(problem in problemList){%>
				<tbody>
					<tr class="${color[problem.status]}">
						<td class="span1">${tag[problem.status]}</td>
						<td class="span1"><a
							href="${contentPath}/problem/${problem.pid}">${problem.pid}</a></td>
						<td class="span7">&nbsp;&nbsp;<a
							href="${contentPath}/problem/${problem.pid}">${problem.title}</a></td>
						<td>${problem.accepted}/${problem.submit}</td>
						<td>${problem.ratio,"##.##"}%</td>
					</tr>
				</tbody>
				<%}%>
			</table>
		</div>
	</div>
</div>
<%}; include("commons/_layout.html",{body:body}){}%>

